﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SampleWinProject.Lambda
{
    public static class Lambda
    {
        public static void Test(this int a)
        {
            List<int> list = new List<int>() { 1, 2, 3, 4, 5, 6, 7 };
            List<int> result = list.FindAll(
               i=> (i%2) !=0
            );

            foreach (var oddNumber in result)//迭代输出数据
            {
                //输出奇数
                Console.WriteLine(oddNumber);
            }
        }
    }
}
